<template>
  <div>
      <!-- <van-card
        v-for="item in $store.state.list" :key="item.id"
        num="2"
        price="2.00"
        desc="描述信息"
        title="商品标题"
        thumb="https://img01.yzcdn.cn/vant/ipad.jpeg"
      /> -->
      <p @click="$router.push(`/DeletPage/${item.id}`)" v-for="item in $store.state.list" :key="item.id">
          {{item.title}}
      </p>
  </div>
</template>

<script>
import axios from 'axios'
import '../../api/index'
// import Vue from 'vue';
// import { Card } from 'vant';
// Vue.use(Card);
export default {

    data(){
        return{

        }
    },
    mounted(){
        this.Datacall()
    },
    methods:{
        Datacall(){
          axios.get('/api/list').then(res=>{
            this.$store.commit('setlist',res.data.list )
          })
        }
    }

}
</script>

<style>

</style>